const express = require('express');
const { query } = require('../mysql/query');
const router = express.Router();

/* GET home page. */
router.get('/', function (req, res, next) {
  res.send('test');
});

router.get('/testsql', async function (req, res, next) {
  try {
    let result = await query(`SELECT * FROM ljz_meeting_clerk`);
    res.send(result);
  } catch (error) {
    res.send(error);
    throw (error);
  }

})

module.exports = router;
